package top.rushpeak.edu03.admin.web;

import java.util.List;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

/**
 * 首頁
 * @author wesleyxw
 *
 * 2017年3月18日
 */
public class IndexController extends BaseController {
	
	public void index() {
		//首頁大圖
		List<Record> fImage = Db.find("select * from show_image where image_type = 0 and is_use = 1 order by id DESC limit 0,5");
		setAttr("listfImg",fImage);
		
		
		render("index.html");
	}
	

}





